<template
  >
    <a-result status="404" title="404" sub-title="页面不存在或者您没有权限打开该页面.">
      <template #extra>
        <a-button type="primary" @click="back">返回欢迎页</a-button>
        <!-- <a-button type="primary" @click="login">重新登录</a-button> -->
      </template>
    </a-result>
</template>
<script lang="ts" setup>
// import { useUserInfo } from '@/store/user';
import { useRouter } from 'vue-router';

const router = useRouter();
// const storeUser = useUserInfo();
const back = () => {
  router.push('/welcome');
};
// const login = () => {
//   storeUser.logOut();
//   setTimeout(() => {
//     router.push({ name: 'login' });
//   }, 200);
// };
</script>
<style lang="scss" scoped></style>
